package uy.com.csi.gestpro.model.seguridad;

import java.io.Serializable;

import javax.persistence.*;

import uy.com.csi.gestpro.model.mantenimiento.GpPrsnal;

import java.util.List;

/**
 * The persistent class for the gp_usrio database table.
 * 
 */
@Entity
@Table(name = "gp_usrio", schema = "seguridad")
@NamedQuery(name = "GpUsrio.findAll", query = "SELECT g FROM GpUsrio g")
public class GpUsrio implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private String clve;

	private Integer estdo;

	private String nicknme;
	
	@Column(name="lgin_tblet")
	private Boolean lginTblet;

	// bi-directional many-to-one association to GpPryctoUsrio
	@OneToMany(mappedBy = "gpUsrio")
	private List<GpPryctoUsrio> gpPryctoUsrios;

	// bi-directional many-to-one association to GpPrsnal
	@OneToMany(mappedBy = "gpUsrio")
	private List<GpPrsnal> gpPrsnals;

	public GpUsrio() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getClve() {
		return this.clve;
	}

	public void setClve(String clve) {
		this.clve = clve;
	}

	public Integer getEstdo() {
		return this.estdo;
	}

	public void setEstdo(Integer estdo) {
		this.estdo = estdo;
	}

	public String getNicknme() {
		return this.nicknme;
	}

	public void setNicknme(String nicknme) {
		this.nicknme = nicknme;
	}

	public List<GpPryctoUsrio> getGpPryctoUsrios() {
		return this.gpPryctoUsrios;
	}

	public void setGpPryctoUsrios(List<GpPryctoUsrio> gpPryctoUsrios) {
		this.gpPryctoUsrios = gpPryctoUsrios;
	}

	public GpPryctoUsrio addGpPryctoUsrio(GpPryctoUsrio gpPryctoUsrio) {
		getGpPryctoUsrios().add(gpPryctoUsrio);
		gpPryctoUsrio.setGpUsrio(this);

		return gpPryctoUsrio;
	}

	public GpPryctoUsrio removeGpPryctoUsrio(GpPryctoUsrio gpPryctoUsrio) {
		getGpPryctoUsrios().remove(gpPryctoUsrio);
		gpPryctoUsrio.setGpUsrio(null);

		return gpPryctoUsrio;
	}

	public List<GpPrsnal> getGpPrsnals() {
		return gpPrsnals;
	}

	public void setGpPrsnals(List<GpPrsnal> gpPrsnals) {
		this.gpPrsnals = gpPrsnals;
	}

	public Boolean getLginTblet() {
		return lginTblet;
	}

	public void setLginTblet(Boolean lginTblet) {
		this.lginTblet = lginTblet;
	}

}